﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _73自动属性和普通属性
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }

    public class Person
    {
        //普通属性
        public string _name;
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        
        //自动属性
        public int Age
        {
            get;
            set;
        }
    }
}
